#ifndef GPS_H
#define GPS_H
#include "stdint.h"

typedef enum {
	GpsFixTypeNone = 0,
	GpsFixType2D = 1,
	GpsFixType3D = 2
} GpsType;

typedef struct {
	int start;
	int end;
	uint8_t isOk;
} StrRange;

uint8_t doNmeaCheckSum(char *line, int size);
StrRange findStr(char *line, int size,int num);
void doGpsCmd(uint8_t* line, int size);
void doUbxPro(uint8_t* line, int size);
void doTSip(uint8_t* line, int size);

#endif
